package com.example.demo.sys.dao;

import com.example.demo.sys.entity.Permission;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PermissionMapper {
    void addPermission(Permission permission);
    List<Permission> getUserPermissions(Long userId);
    void deleteByUserId(Long userId);
}
